package com.xintoucloud.pbs.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xintoucloud.pbs.dao.PartyBranchContributeStateDao;
import com.xintoucloud.pbs.entity.PartyBranchContributeState;
import com.xintoucloud.pbs.service.PartyBranchContributeStateService;

@Service@Transactional //党支部信息投稿 (党工委)审核状态ServiceImpl
public class PartyBranchContributeStateServiceImpl implements PartyBranchContributeStateService {

	@Autowired  //自动依赖注入
	private PartyBranchContributeStateDao pbcsDao;
	
	@Override
	@Transactional
	public boolean save(PartyBranchContributeState pbcs) {
		return (int)pbcsDao.save(pbcs)>0;
	}

}
